libxc: Fix Segmentation fault of xend
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Jun 2010 08:55:12 +0000 (09:55 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 21 Jun 2010 08:55:12 +0000 (09:55 +0100)
commitff4cc394909125814f2a1e2e8e592b105f5ffc44
treea6f7722ab19527802b31f13f876e1ae7fab24c90
parent636fed5063dc8a5d0c64bb15bfa13616304415bd
libxc: Fix Segmentation fault of xend

If /proc/xen/privcmd cannot be opened,
start xend occurs Segmentation fault.
Add check to fix it.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
tools/libxc/xc_private.c